package com.day10;

public class TestString {
    public static void main(String[] args) {
        //String mystring="Hello World!";//第一种赋值在声明时赋值
        //String mystring;//第二种声明后再用变量名赋值
        //mystring="Hello World!";
        //System.out.println(mystring);

        String name="方俊杰";
        String sex="男";
        String from="中国";
        String info="姓名："+name+" \n性别："+sex+" \n来自："+from;
        System.out.println(info);
    }
}
